package com.shg.service.bbs;
import java.util.List;

import com.shg.bean.Book;
import com.shg.bean.bbs.Favorite;
import com.shg.bean.bbs.FavoriteItem;
import com.shg.service.BasiceDao;

public interface FavoriteService extends BasiceDao<Favorite> {
	/**
	 * 收藏图书
	 *	某个人要收藏某本书籍
	 *@param userId收藏人
	 *@param favoriteItem收藏项
	 */
	public void insertBook(String userId,FavoriteItem favoriteItem)throws Exception;
	/**
	 * 获取收藏的书籍
	 * @param shopid 店铺的ID也登录用户的ID
	 */
	public List<Book> getBook(String shopid)throws Exception;
}
